package routers

import (
	"shop/internal/handler"

	"github.com/gin-gonic/gin"
)

func init() {
	apiV1RouterFns = append(apiV1RouterFns, func(group *gin.RouterGroup) {
		tkMemberRouter(group, handler.NewTkMemberHandler())
	})
}

func tkMemberRouter(group *gin.RouterGroup, h handler.TkMemberHandler) {
	group.POST("/tkMember", h.Create)
	group.DELETE("/tkMember/:id", h.DeleteByID)
	group.POST("/tkMember/delete/ids", h.DeleteByIDs)
	group.PUT("/tkMember/:id", h.UpdateByID)
	group.GET("/tkMember/:id", h.GetByID)
	group.POST("/tkMember/list/ids", h.ListByIDs)
	group.POST("/tkMember/list", h.List)
	group.POST("/auth", h.Auth)
}
